// import request from "@/utils/request"
import request from "@/utils/request";
// 保函列表(1)
export const companylist = (params) => {

    return request({
        method: "POST",
        data: {
            ...params
        },
        url: "/api/company/companylist",
    });
};
export const baohanqianzhang = (params) => {

    return request({
        method: "POST",
        data: {
            ...params
        },
        url: "/QBaoHan/baohanqiangzhang",
    });
    // return request({
    //     method: "POST",
    //     data: {
    //         ...params
    //     },
    //     url: "/apply/baohan/baohanqianzhang",
    // });
};

// 收入
export const paylists = (params) => {

    return request({
        method: "POST",
        data: {
            ...params
        },
        url: "/apply/pay/paylist",
    });
};
// export const zhongbiao = (params) => {

//     return request({
//         method: "POST",
//         data: {
//            ...params
//         },
//         url: "/apply/baohan/zhongbiao",
//     });
// };
// export const gongchenginfo = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/index/gongchenginfo",
//     });
// };

// 公司列表(1)
// export const bidding = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/bidding",
//     });
// };
// 生成保函数据(2)
// export const generate = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/generate",
//     });
// };

// export const jujue = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/jujue",
//     });
// };
// export const wancheng = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/wancheng",
//     });
// };
// export const guoqi = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/guoqi",
//     });
// };


// 公司列表(3)
// export const getCompany = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/company",
//     });
// };
// 公司列表(3)
// export const datatijiao = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/datatijiao",
//     });
// };
// 填写相关信息后调用
// export const bidfrom = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/datasub",
//     });
// };
//变更
export const gengzheng = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/gongcheng/gengzheng",
    });
};
// 填写相关信息后调用
// export const bhsh_list = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/bhsh_list",
//     });
// };
// 填写相关信息后调用
// export const danbaoqianzhang = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/danbaoqianzhang",
//     });
// };
// 填写相关信息后调用
// export const faren = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/farenqianzhang",
//     });
// };
// 填写相关信息后调用
// export const zhenshi = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/zhenshiqianzhang",
//     });
// };
// export const bhpay = (params) => {

//     return request({
//         method: "POST",
//         data: params,
//         url: "/apply/baohan/danbaoqianzhang",
//     });
// };
export const enclosure = (params) => {

    return request({
        method: "post",
        data: params,
        url: "/encl/baohan",
        // url: "/system/baohanqianzhang",
        // url: "/system/bhfile/"+params,
    });
    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/apply/baohan/enclosure",
    // });
};

// 填写相关信息后调用
export const getpayinfo = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/getpayinfo",
    });
};

export const paylist = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/paylist",
    });
};

export const ddch = (params) => {

    return request({
        method: "post",
        data: params,
        url: "/systems/applications/ddch",
        // url: "/apply/baohan/ddch",
    });
};
export const shebaolist = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/shebao/shebaolist",
    });
};
//快递详情
export const sfdetail = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/kuaidi/sf_detail",
    });
};
//快递轨迹
export const sfroute = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/kuaidi/sf_route",
    });
};
//取消快递
export const sfcancel = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/kuaidi/sf_cancel",
    });
};

// 公司列表(1)
export const concompany = (params) => {

    return request({
        method: "POST",
        data: {
            ...params
        },
        url: "/apply/baohan/con_company",
    });
};
export const zhaobiao = (params) => {

    return request({
        method: "POST",
        data: {
            ...params
        },
        url: "/apply/baohan/zhaobiao",
    });
};
export const zhongbiao = (params) => {

    return request({
        method: "POST",
        data: {
            ...params
        },
        url: "/apply/baohan/zhongbiao",
    });
};
// 保函列表(1)
export const bhlist = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/bhlist",
    });
};
export const gongchenginfo = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/index/gongchenginfo",
    });
};

// 公司列表(1)
export const bidding = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/bidding",
    });
};
// 生成保函数据(2)
export const generate = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/generate",
    });
};

export const jujue = (params) => {

    return request({
        method: "post",
        data: params,
        url: "/systems/applications/jujue",
        // url: "/apply/baohan/jujue",
    });
};
export const wancheng = (params) => {

    return request({
        method: "post",
        data: params,
        url: "/systems/applications/wancheng",
        // url: "/apply/baohan/wancheng",
    });
};
export const guoqi = (params) => {

    return request({
        method: "post",
        data: params,
        url: "/systems/applications/guoqi",
        // url: "/apply/baohan/guoqi",
    });
};
export const daishen = (params) => {

    return request({
        method: "post",
        data: params,
        url: "/systems/applications/daishen",
    });
    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/apply/baohan/daishen",
    // });
};

// 公司列表(3)
export const getCompany = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/company",
    });
};
// 公司列表(3)
export const datatijiao = (params) => {
    return request({
        method: "POST",
        data: params,
        url: "/apply/datatijiao",
    });
    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/system/file",
    // });
    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/apply/baohan/datatijiao",
    // });
};
// 填写相关信息后调用
export const bidfrom = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/datasub",
    });
};
//保函详情
export const detail = (params) => {

    return request({
        method: "post",
        data: params,
        url: "/bhdetail/",
    });
    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/apply/index/detail",
    // });
};
//保函详情
export const detailbhs = (params) => {

    return request({
        method: "post",
        data: params,
        url: "/bhdetail/bhs",
    });
    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/apply/index/detail",
    // });
};
//保函详情
export const wenjianDetail = (params) => {

    return request({
        method: "get",
        params: params,
        url: "/system/file/list",
    });
};
// 填写相关信息后调用
export const bhsh_list = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/bhsh_list",
    });
};
// 填写相关信息后调用
export const danbaoqianzhang = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/QBaoHan/danbaoqiangzhang",
    });
    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/apply/baohan/danbaoqianzhang",
    // });
};
// 填写相关信息后调用
export const faren = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/farenqianzhang",
    });
};
// 填写相关信息后调用
export const zhenshi = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/zhenshiqianzhang",
    });
};
export const bhpay = (params) => {
    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/danbaoqianzhang",
    });
};


export const resubmit = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/system/fapiao/updateFaFapiao",
        // url: "/apply/fapiao/resubmit",
    });
};
export const bhpay2 = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/zhenshiqianzhang",
    });
};
export const bhpay3 = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/baohan/farenqianzhang",
    });
};

export const zhifuasd = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/Baohan/bhpay",
    });
};

export const grrz = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/grrz/sendcode",
        // url: "/apply/baohan/grrz",
    });
};

// 保函详情
export const bhdetail1 = (params) => {
    return request({
        method: "get",
        // params: params,
        url: "/system/applications/" + params,
    });

    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/apply/baohan/bhdetail",
    // });
};
// 保函详情
export const bhdetail = (params) => {
    return request({
        method: "post",
        data: params,
        url: "/bhdetail",
        // url: "/systems/applications/applyNumber",
        // url: "/systems/applications?guaranteeApplyId=" + params,
        // url: "/system/application/" + params,
    });
    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/apply/baohan/bhdetail",
    // });
};
// 保函签章
export const qianzhang = (params) => {

    return request({
        method: "post",
        data: params,
        url: "/QBaoHan/farenqianzhang",
        // url: "/example/subdata",
        // url: "/QBaoHan/filesign",
        // url: "/QBaoHan/signature",
        // headers: {
        //     "Content-Type": "multipart/form-data"
        // }
    });
    // return request({
    //     method: "post",
    //     data: params,
    //     url: "/qianzhang/qianzhangs",
    // });
    // return request({
    //     method: "POST",
    //     data: params,
    //     url: "/apply/qianzhang/qianzhang",
    // });
};
// 企业认证状态
export const companystatus = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/company/company_status",
    });
};
// 补充企业认证
export const companyziliao = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/system/companyInfo/company_ziliao",
        // url: "/apply/company/company_ziliao",
    });
};
// 补充企业认证
export const scqianzhang = (params) => {

    return request({
        method: "POST",
        data: params,
        url: "/apply/qianzhang/scqianzhang",
    });
};


